﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace WebApi.Models
{
    public class TankView
    {
        /// <summary> 
        /// 罐号
        /// </summary>
        public string fghmc { get; set; }
        /// <summary>
        /// 油品名称
        /// </summary>
        public string fypmc { get; set; }
        /// <summary>
        /// 油高
        /// fyoug
        /// </summary>
        public decimal fyoug { get; set; }
        /// <summary>
        /// 油温
        /// fyouw
        /// </summary>
        public decimal fyouw { get; set; }
        /// <summary>
        /// 昨日库存
        /// fzrkc
        /// </summary>
        public decimal fzrkc { get; set; }
        /// <summary>
        /// 今日库存
        /// fjshs
        /// </summary>
        public decimal fjshs { get; set; }
    }
    public class TankViewChart
    {
        /// <summary> 
        /// 类型：1 储罐 2分类
        /// </summary>
        [Required]
        public int type { get; set; }
        ///// <summary> 
        ///// 罐号
        ///// </summary>
        //[Required]
        //public string fghmc { get; set; }
        /// <summary>
        /// 油品名称
        /// </summary>
        [Required]
        public string fypmc { get; set; }
    }
    public class ChartDate
    {
        /// <summary>
        /// 库存信息
        /// </summary>
        public List<TankDate>   tankDates { get; set; }
        /// <summary>
        /// 饼状图
        /// </summary>
        public List<TankChartDate>  tankCharts { get; set; }
    }
    public class TankDate
    {
        /// <summary>
        /// 油品名称
        /// </summary>
        public string fypmc { get; set; }
        /// <summary>
        /// 昨日库存
        /// </summary>
        public string fzrkc { get; set; }
        /// <summary>
        /// 今日库存
        /// </summary>
        public string fjshs { get; set; }
    }
    public class TankChartDate
    {
        /// <summary>
        /// 数据名称
        /// </summary>
        public string DcsName { get; set; }
        /// <summary>
        /// 数据值
        /// </summary>
        public int DcsData { get; set; }
    }
}